package com.zp.business.entity.register.bo;

import com.zp.common.core.entity.BaseEntity;
import com.zp.common.core.validate.AddGroup;
import com.zp.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 挂号明细业务对象
 *
 * @author zhang peng
 * @ date 2023-12-23
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class RegistrationItemBo extends BaseEntity {

    /**
     * 主键
     */
    @NotBlank(message = "主键不能为空", groups = {AddGroup.class, EditGroup.class})
    private String id;

    /**
     * 门诊记录ID
     */
    private String clinicId;

    /**
     * 类别
     */
    private String itemClass;

    /**
     * 费用名称
     */
    private String itemName;

    /**
     * 代码
     */
    private String itemCode;

    /**
     * 价表id
     */
    @NotBlank(message = "价表id不能为空", groups = {AddGroup.class, EditGroup.class})
    private String priceId;

    /**
     * 数量
     */
    @NotNull(message = "数量不能为空", groups = {AddGroup.class, EditGroup.class})
    private BigDecimal num;

    /**
     * 门诊费用分类
     */
    @NotBlank(message = "门诊费用分类不能为空", groups = {AddGroup.class, EditGroup.class})
    private String classOnRcpt;

    /**
     * 核算项目科目
     */
    @NotBlank(message = "核算项目科目不能为空", groups = {AddGroup.class, EditGroup.class})
    private String classOnReckoning;

    /**
     * 会计科目
     */
    @NotBlank(message = "会计科目不能为空", groups = {AddGroup.class, EditGroup.class})
    private String subjCode;

    /**
     * 应付费用
     */
    @NotNull(message = "应付费用不能为空", groups = {AddGroup.class, EditGroup.class})
    private BigDecimal costs;

    /**
     * 实付费用
     */
    @NotNull(message = "实付费用不能为空", groups = {AddGroup.class, EditGroup.class})
    private BigDecimal charges;

    /**
     * $column.columnComment
     */
    @NotBlank(message = "$column.columnComment不能为空", groups = {AddGroup.class, EditGroup.class})
    private String orgId;


    /**
     * $column.columnComment
     */
    private String remarks;

    private String delFlag;


}
